const fs= require("fs");
const path = require("path");

var filePath=path.join(__dirname,"2.txt");

fs.writeFile(filePath,"hello nodejs",function(err){
    if(err){
        console.log(err)
    }
});

console.log("异步代码执行");